# 列表排序练习
import keyword


def list_sort():
    list1 = ['2', '3', '7', '0', '-8', '20']
    list2 = ['zhangsan', 'lisi', 'wamgw', 'ylojbk', 'hm']
    print(list1)
    print(list2)

    list1.sort()  # 正序
    list2.sort()
    print(list1)
    print(list2)

    list1.sort(reverse=True)  # 逆序
    list2.sort(reverse=True)
    print(list1)
    print(list2)

    list1.reverse()  # 反转
    list2.reverse()
    print(list1)
    print(list2)


list_sort()

print(len(keyword.kwlist))
